<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        h1 {
            text-align: center;
        }

        .dash_board {
            border-style: solid;
            border-color: black;
            height: 500px;
            width: 500px;
            position: absolute;
            margin: auto;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        .box {
            border: 1px;
            border-style: solid;
            height: 48px;
            width: 48px;
            float: left;
            text-align: center;
            line-height: 48px;
            font-size: large;
            font-weight: bolder;
        }

        .black-box {
            width: 46px;
            height: 46px;
            border: 2px aliceblue;
            background: black;
        }

        .mine {
            height: 30px;
            width: 30px;
            border-radius: 15px;
            background: red;
            display: inline-block;
            vertical-align: middle;
        }
    </style>
</head>
<body>
<div class="dash_board">
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box"></div>
    <div class="box">
        <div class="mine">
        </div>
    </div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box">666</div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box">
        <div class="mine">
        </div>
    </div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box">
        <div class="mine">
        </div>
    </div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box">44</div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box">
        <div class="mine">
        </div>
    </div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box"></div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box"></div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box">
        <div class="black-box">

        </div>
    </div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
    <div class="box"></div>
</div>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script type="text/javascript">

    $(".box").click(function () {
        alert("1234");
    })
</script>
</body>
</html>